package com.dongdongshop.service;

import com.dongdongshop.common.AjaxResult;
import com.dongdongshop.pojo.TbSpecification;
import com.dongdongshop.pojo.TbSpecificationOption;

import java.util.List;

public interface TbSpecificationService {
    AjaxResult selectInfoLimitServer(TbSpecification specification, Integer pageNumber, Integer pageSize);

    int addSpecificationAndOptions(TbSpecification specification, String[] optionNames, Integer[] orders);

    TbSpecification selectByIdSpecification(Long id);

    List<TbSpecificationOption> selectBySpecIdSpecificationOption(Long id);

    int updateSpecification(TbSpecification specification, String[] optionNames, Integer[] orders);

    int deleteSpecification(Long id);

    List<TbSpecification> selectAll();

    List<TbSpecificationOption> selectBySpecId(Long specId);
}
